package wfmanage.action;

import edu.wfmanage.models.*;
import java.sql.Date;
import java.util.ArrayList;

import com.opensymphony.xwork2.ActionSupport;

public class SupportExecutiveViewPage extends ActionSupport{

	private int id;
	private String category;
	private String summary;
	private Date date;
	private String commandbutton;
	private ArrayList<Ticket> tickets;
	
	public String execute(){
				
		if(this.commandbutton.startsWith("Sign")){
			return "sign_out";
		}
				
		return "initial_entry";
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public String getSummary() {
		return summary;
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public String getCommandbutton() {
		return commandbutton;
	}
	public void setCommandbutton(String commandbutton) {
		this.commandbutton = commandbutton;
	}
	public ArrayList<Ticket> getTickets() {
		return tickets;
	}
	public void setTickets(ArrayList<Ticket> tickets) {
		this.tickets = tickets;
	}
	
	
	
	
}
